<?php
//-----------------------------------------------------------------------------//
// Modification       :Global - menu left
//-----------------------------------------------------------------------------//
// Date(yyyy.mm.dd)   Developer                       Action
//-----------------------------------------------------------------------------//
// 2011.11.14         QuynhTTN                        Created
//-----------------------------------------------------------------------------//

function showMenuLeft(){
	$action = CM_getParameter(ACTION);
	$action2 = CM_getParameter(ACTION2);				
	$modul = CM_getParameter(MODUL);	
	if(empty($modul)){
		$modul = "admin";
		$action ="List";
	}
	
	
	$arrayMenu[trim($modul)] = true;
	if($action =="ShowFormSearchText"){
		$arrayMenu[$modul]= false;				
		$arrayMenu[$action2] = true;
		
	}else{
			$arrayMenu[trim($modul)] = true;
			$arrayMenu[$action]= true;
	}
	if($modul=="sanpham"){
		$arrayMenu["loaisanpham"]=true;
	}
	
	$arrayMenu[trim($modul).trim($action)] = true;				
	//echo "action = ".$action;
	
	
	createOneMenu("?modul=gioithieu&action=list","Giới thiệu",$arrayMenu["gioithieu"]);
	
	createOneMenu("?modul=tintuc&action=list","Tin tức",$arrayMenu["tintuc"]);
	createOneMenu("?modul=loaisanpham&action=List","Sản phẩm",$arrayMenu["loaisanpham"]);
	createOneMenu("?modul=cauhinhweb&action=Edit","Cấu hình web",$arrayMenu["cauhinhweb"]);
	createOneMenu("?modul=lienhe&action=Edit","Liên hệ",$arrayMenu["lienhe"]);
	createOneMenu("?modul=admin&action=List","Danh Sách Tài Khoản",$arrayMenu["adminList"]);
	createOneMenu("?modul=admin&action=Add","Tạo Mới Tài Khoản",$arrayMenu["adminAdd"]);
	createOneMenu("?modul=admin&action=ChangePass","Đổi Mật Khẩu",$arrayMenu["adminChangePass"]);
	createOneMenu("?modul=admin&action=logout","Thoát",$arrayMenu["adminLogout"]);
}
?>
	